﻿using System;

namespace Framework.Infrastructure
{
    /// <summary>
    /// 公共常量
    /// </summary>
    public class PublicConst
    {
        /// <summary>
        /// JWT秘钥（后台）
        /// </summary>
        public readonly static string JWTSecretBK = "as12dfsaDFSdf233221fda1@#,";

        /// <summary>
        /// JWT秘钥（手机端）
        /// </summary>
        public readonly static string JWTSecretPhone = "1234sdf@1!daf$%#FFF#";

        /// <summary>
        /// DES加密KEY
        /// </summary>
        public readonly static string DesKey = "dddFSD2222f";

        /// <summary>
        /// token过期时间（分钟）（后台）
        /// </summary>
        public readonly static int BKTokenExpireMins = 60 * 10;

        /// <summary>
        /// token过期时间（分钟）（手机端）
        /// </summary>
        public readonly static int PhoneTokenExpireMins = 60 * 24 * 7;

        /// <summary>
        /// 登录错误间隔时间（分钟）（后台）
        /// </summary>
        public readonly static int BKLoginErrorIntervalTime = 30;

        /// <summary>
        /// 登录错误间隔时间（分钟）（手机端）
        /// </summary>
        public readonly static int PhoneLoginErrorIntervalTime = 20;

        /// <summary>
        /// 指定时间允许登录次数（后台）
        /// </summary>
        public readonly static int BKLoginErrorIntervalCount = 5;

        /// <summary>
        /// 指定时间允许登录次数（手机端）
        /// </summary>
        public readonly static int PhoneLoginErrorIntervalCount = 10;

        /// <summary>
        /// 登录验证码过期时间（分钟）（后台）
        /// </summary>
        public readonly static int BKVerifyCodeExpireMins = 5;

        /// <summary>
        /// 登录验证码过期时间（分钟）（手机端）
        /// </summary>
        public readonly static int PhoneVerifyCodeExpireMins = 10;


    }
}
